<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<div class="desplegable">
		<?php  $this->Form->new_menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="alimentos form">
<?php echo $this->Form->create('Alimentos');?>
	<fieldset>
 		<legend><?php __('Minuta Alimenticia '); ?></legend> 			
 		<table cellpadding="0" cellspacing="0">
	 		<tr>			
				<th class="actions"><?php __('Tutor'); ?></th>			
				<th class="actions"><?php __('Bebida Lactea');?></th>
				<th class="actions"><?php __('Jugo');?></th>
				<th class="actions"><?php __('Cereal');?></th>
				<th class="actions"><?php __('Carbohidrato');?></th>
				<th class="actions"><?php __('Fruta');?></th>
				<th class="actions"><?php __('Otro');?></th>
				<th class="actions"><?php __('Calidad');?></th>
				<th class="actions"><?php __('Observacion');?></th>
			</tr>
			<tr>
			<?php				
					foreach($tutores as $tutor){
					$tutors = array();
					$tutor_id = $tutor['User']['id'];						
					$tutors = $this->Alimento->alimento_tutor_mes($tutor_id, $mes);
					$seleccion = ($tutors['Alimento']['calidad']=='Bueno')?'0':'1';					
			?>
				<td><?php echo $this->Form->label($tutor['User']['nombre_completo']);?></td>
					<?php echo $this->Form->input(null, array('type'=>'hidden', 'name'=>'data[user_id]['.$tutor['User']['id'].']',
															  'id'=>'data[tutor]['.$tutor['User']['id'].']',
															  'value'=>$tutor['User']['id']));?>
					<?php echo $this->Form->input(null, array('type'=>'hidden', 'name'=>'data[tutors]['.$tutor['User']['id'].']',
															  'id'=>'data[tutors]['.$tutor['User']['id'].']',
															  'value'=>$tutors['Alimento']['id']));?>
			 	<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[bebida_lactea]['.$tutor['User']['id'].']', 
															  'name'=>'data[bebida_lactea]['.$tutor['User']['id'].']',
															  'class' => 'text_asistencia', 'type'=>'text', 'value'=>$tutors['Alimento']['bebida_lactea']))?></td>
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[jugo]['.$tutor['User']['id'].']', 
															  'name'=>'data[jugo]['.$tutor['User']['id'].']',
															  'class' => 'text_asistencia', 'type'=>'text','value'=>$tutors['Alimento']['jugo']))?></td>
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[cereal]['.$tutor['User']['id'].']', 
															  'name'=>'data[cereal]['.$tutor['User']['id'].']',
															  'class' => 'text_asistencia', 'type'=>'text', 'value'=>$tutors['Alimento']['cereal']))?></td>
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[carbohidrato]['.$tutor['User']['id'].']', 
															  'name'=>'data[carbohidrato]['.$tutor['User']['id'].']',
															  'class' => 'text_asistencia', 'type'=>'text', 'value'=>$tutors['Alimento']['carbohidrato']))?></td>
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[fruta]['.$tutor['User']['id'].']', 
															  'name'=>'data[fruta]['.$tutor['User']['id'].']',
															  'class' => 'text_asistencia', 'type'=>'text','value'=>$tutors['Alimento']['fruta']))?></td>	
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[otro]['.$tutor['User']['id'].']', 
															  'name'=>'data[otro]['.$tutor['User']['id'].']',
				 											  'class' => 'text_kit', 'type'=>'text', 'value'=>$tutors['Alimento']['otro']))?></td>										  
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[calidad]['.$tutor['User']['id'].']', 
															  'name'=>'data[calidad]['.$tutor['User']['id'].']',
															  'type'=>'select','options'=>array('Bueno','Regular'),'selected'=>$seleccion))?></td>
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[observacion]['.$tutor['User']['id'].']', 
															  'name'=>'data[observacion]['.$tutor['User']['id'].']',
				 											  'class' => 'text_kit', 'type'=>'text', 'value'=>$tutors['Alimento']['observacion']))?></td>
			</tr>
			<?php 
					}									
			?>
		</table>
	</fieldset>	
<?php echo $this->Form->input('zona_id', array('type'=>'hidden', 'value'=>$zona_id));?>
<?php echo $this->Form->input('mes', array('type'=>'hidden', 'value'=>$mes));?>
<?php echo $this->Form->end(__('Guardar', true));?>
</div>